package com.bus.core.dao;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.bus.common.hibernate4.Updater;
import com.bus.core.entity.BusUser;

@CacheConfig(cacheNames="BusUser")
public interface BusUserDao extends JpaRepository<BusUser, Integer>{
	
	@Cacheable
	public BusUser findByUsername(String username);
	
}
